package com.huangsm.cloud.consumer.feign.fallback;

import com.huangsm.cloud.consumer.entity.User;
import com.huangsm.cloud.consumer.feign.UserFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class UserFeignHystrix implements UserFeign {
    @Override
    public User findUser(Long id) {
        log.info("服务爆炸了。。。");
        return null;
    }

    @Override
    public String serviceUrl() {
        log.info("服务爆炸了。。。");
        return "服务爆炸了。。。";
    }
}
